export class TestNpmRefError {
    constructor() {
        console.log('TestNpmRefError');
        this.testError2();
        this.testPromiseError();
    }
    testError2(){
        console.error(new Error("Npm包嵌套调用报错"));
    }
    testPromiseError(){
        new Promise((resolve,reject)=>{
            reject(new Error("Npm包Promise报错"));
        })
    }
}
console.error(new Error("Npm包顶层报错"));